home *** CD-ROM | disk | FTP | other *** search
- #include <X11/Xlib.h>
- #include <X11/extensions/shape.h>
-
- Display *display;
- int shape_status;
- int major_version, minor_version;
-
- /* Open display connection... */
-
- /*
- * Check if we have the SHAPE extension
- */
- shape_status = XShapeQueryVersion( display,
- &major_version,
- &minor_version );
-
- if( shape_status != 0 )
- {
- printf( "SHAPE extension supported ver.%d.%d\n",
- major_version, minor_version );
-
- /* ... */
- }
-
-